package com.example.visitsweb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.visitsweb.entity.Notice;
import com.example.visitsweb.mapper.NoticeMapper;
import com.example.visitsweb.service.NoticeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MarkerHub
 * @since 2022-04-26
 */
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {
@Autowired
NoticeMapper noticeMapper;
    @Override
    public List<Notice> getPublishList() {
        return noticeMapper.selectList(new QueryWrapper<Notice>());
    }
}
